<?php if(is_404()) header('HTTP/1.1 404 Not Found');
if (!function_exists('browse_happy_template')) include(TEMPLATEPATH.'/functions.php'); //WP1.5 and lower
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php if (function_exists('language_attributes')) language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<title><?php wp_title(' '); if(wp_title(' ',false)) echo ' &laquo; '; bloginfo('name'); ?></title>
	<link rel="stylesheet" href="<?php stylesheet_template(); ?>" type="text/css" />
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
	<?php if ( !is_single() && !is_page() ) { ?><script type="text/javascript">
		//<![CDATA[
			window.onload = function() {
				var height = Math.max(document.getElementById('main-content').offsetHeight,document.getElementById('sidebar').offsetHeight);
				document.getElementById('main-content').style.height=height+'px';
				document.getElementById('sidebar').style.height=height+'px';
			}
		//]]>
	</script><?php } ?>
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<?php wp_head(); ?>
</head>
<body id="<?php if ( !is_single() && !is_page() ) { ?>twocolumn-right<?php } else { ?>onecolumn<?php } ?>">
	<div id="container">
		<div class="wrapper">
			<div id="header">
				<div class="wrapper">
					<div id='the_title'><h1 id="page-title"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1></div>
					<div class="clear"></div>
					<div id='the_description'><p class="description"><?php bloginfo('description'); ?></p></div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- /wrapper --><!-- /header -->
		<div class="ads"><?php do_action('top_ads_template'); ?></div>
			<div id="main-content">
				<div class="wrapper">
					<div class="content-item ">
						<div id="the_body">
